<?php

namespace CMBUBank\UBank\Request\TransManager;

use CMBUBank\UBank\Request\UBankBaseRequest;
use CMBUBank\UBank\Response\TransManager\TransManagerSubunitWhiteDeleteResponse;

class TransManagerSubunitWhiteDeleteRequest extends UBankBaseRequest
{
    protected $code = 'NTDUMRLD';

    protected $response = TransManagerSubunitWhiteDeleteResponse::class;

    protected $logTip = '删除记账子单元付方白名单信息';

    private $busMode;

    private $backNo;

    private $account;

    private $subCode;

    private $whiteAccount;

    public function generate(): array
    {
        return [
            'ntbusmody' => [[
                'busmod' => $this->busMode
            ]],
            'ntdumrldx1' => [[
                'bbknbr' => $this->backNo,
                'accnbr' => $this->account,
                'dumnbr' => $this->subCode,
                'rltacc' => $this->whiteAccount,
                'yurref' => $this->newReqCode()
            ]],
        ];
    }

    public function setBusMode($busMode): void
    {
        $this->busMode = $busMode;
    }

    public function setBackNo($backNo): void
    {
        $this->backNo = $backNo;
    }

    public function setAccount($account): void
    {
        $this->account = $account;
    }

    public function setSubCode($subCode): void
    {
        $this->subCode = $subCode;
    }

    public function setWhiteAccount($whiteAccount): void
    {
        $this->whiteAccount = $whiteAccount;
    }
}